﻿<Window x:Class="Ellanet.Windows.SelectionWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"
        Title="Minions Maths" Height="600" Width="450" WindowStyle="None" WindowState="Normal" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" MouseDown="SelectionWindow_OnMouseDown" Icon="/Resources/Minion-Reading-icon.png" AllowsTransparency="True" Background="Transparent">
    <Window.Resources>
        <Image x:Key="BulletImage" Source="/Resources/Minion-Happy-icon.png" RenderOptions.BitmapScalingMode="HighQuality" x:Shared="False">
            <Image.ToolTip>
                <Image Source="/Resources/Minion-Happy-icon.png" RenderOptions.BitmapScalingMode="HighQuality"/>
                <!--Say hello when shown-->
            </Image.ToolTip>
        </Image>
    </Window.Resources>
    <Grid>
        <Grid Height="390" Width="380">
            <Rectangle Style="{StaticResource BackgroundRectangleStyle}"/>
            <Button IsCancel="True" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="20" Click="CloseButton_OnClick">
                <Button.Style>
                    <Style TargetType="Button" BasedOn="{StaticResource NoChromeButton}">
                        <Setter Property="Cursor" Value="Hand"/>
                        <Setter Property="Height" Value="16"/>
                        <Setter Property="Width" Value="16"/>
                    </Style>
                </Button.Style>
                <Image RenderOptions.BitmapScalingMode="HighQuality">
                    <Image.Style>
                        <Style TargetType="{x:Type Image}">
                           <Setter Property="Source" Value="/Resources/X_Blue_32x32.png"/>
                            <Style.Triggers>
                                <Trigger Property ="IsMouseOver" Value="True">
                                    <Setter Property="Source" Value="/Resources/X_Yellow_32x32.png"/>
                                </Trigger>
                            </Style.Triggers>
                        </Style>
                    </Image.Style>
                </Image>
            </Button>
            <Grid Margin="30">
                <Grid.Resources>
                    <Style TargetType="Button" x:Key="StandardButtonStyle" BasedOn="{StaticResource GenericButtonStyle}">
                        <Setter Property="Height" Value="30"/>
                        <Setter Property="Width" Value="80"/>
                        <Setter Property="Margin" Value="10"/>
                    </Style>
                    <Style TargetType="{x:Type Button}" BasedOn="{StaticResource StandardButtonStyle}" x:Key="MenuButtonStyle">
                        <Style.Triggers>
                            <EventTrigger RoutedEvent="Click">
                                <EventTrigger.Actions>
                                    <BeginStoryboard>
                                        <Storyboard>
                                            <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="ContextMenu.IsOpen">
                                                <DiscreteBooleanKeyFrame KeyTime="0:0:0" Value="True"/>
                                            </BooleanAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </BeginStoryboard>
                                </EventTrigger.Actions>
                            </EventTrigger>
                        </Style.Triggers>
                    </Style>
                </Grid.Resources>
                <Grid.RowDefinitions>
                    <RowDefinition Height="65"/>
                    <RowDefinition/>
                    <RowDefinition Height="20"/>
                    <RowDefinition Height="90"/>
                    <RowDefinition Height="20"/>
                    <RowDefinition/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="75"/>
                    <ColumnDefinition Width="20"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Image Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="4" Source="/Resources/Minion Maths.png" HorizontalAlignment="Center" VerticalAlignment="Top" RenderOptions.BitmapScalingMode="HighQuality" Cursor="Hand" MouseDown="TitleImage_OnMouseDown" Margin="20,0,20,0"/>
                <Border Grid.Row="1" Grid.Column="0" Grid.RowSpan="5" Style="{StaticResource GroupingBorderStyle}"/>
                <TextBlock Grid.Row="1" Grid.Column="0" Text="Tables" Style="{StaticResource GroupingTextBlockStyle}"/>
                <ListBox Grid.Row="1" Grid.Column="0" Grid.RowSpan="5" Margin="20" ItemsSource="{Binding Path=Multiplicands}" DisplayMemberPath="Value" SelectionMode="Multiple" Foreground="{StaticResource StandardDarkControlSolidColorBrush}">
                    <ListBox.Resources>
                        <Style TargetType="{x:Type ListBoxItem}">
                            <Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}"/>
                            <EventSetter Event="Selected" Handler="MultiplierSelected_OnHandler"/>
                        </Style>
                    </ListBox.Resources>
                </ListBox>
                <Border Grid.Row="1" Grid.Column="2" Grid.ColumnSpan="2" Style="{StaticResource GroupingBorderStyle}"/>
                <TextBlock Grid.Row="1" Grid.Column="2" Text="Audio" Style="{StaticResource GroupingTextBlockStyle}"/>
                <Button Grid.Row="1" Grid.Column="2" Content="Speed" Click="VoiceRateButton_OnClick" Style="{StaticResource MenuButtonStyle}" HorizontalAlignment="Right">
                    <Button.ContextMenu>
                        <ContextMenu ItemsSource="{Binding Path=VoiceRates}" StaysOpen="True">
                            <ContextMenu.ItemContainerStyle>
                                <Style TargetType="MenuItem">
                                    <Setter Property="Header" Value="{Binding Path=Name}"/>
                                    <Setter Property="Icon" Value="{x:Null}"/>
                                    <EventSetter Event="Click" Handler="VoiceRateMenuItemEvent_OnHandler"/>
                                    <Style.Triggers>
                                        <DataTrigger Binding="{Binding Path=IsSelected}" Value="True">
                                            <Setter Property="Icon" Value="{StaticResource BulletImage}"/>
                                        </DataTrigger>
                                    </Style.Triggers>
                                </Style>
                            </ContextMenu.ItemContainerStyle>
                        </ContextMenu>
                    </Button.ContextMenu>
                </Button>
                <Button Grid.Row="1" Grid.Column="3" Content="Voice" Click="VoiceNameButton_OnClick" Style="{StaticResource MenuButtonStyle}" HorizontalAlignment="Left">
                    <Button.ContextMenu>
                        <ContextMenu ItemsSource="{Binding Path=VoiceNames}" StaysOpen="True">
                            <ContextMenu.ItemContainerStyle>
                                <Style TargetType="MenuItem">
                                    <Setter Property="Header" Value="{Binding Path=Name}"/>
                                    <Setter Property="Icon" Value="{x:Null}"/>
                                    <EventSetter Event="Click" Handler="VoiceNameMenuItemEvent_OnHandler"/>
                                    <Style.Triggers>
                                        <DataTrigger Binding="{Binding Path=IsSelected}" Value="True">
                                            <Setter Property="Icon" Value="{StaticResource BulletImage}"/>
                                        </DataTrigger>
                                    </Style.Triggers>
                                </Style>
                            </ContextMenu.ItemContainerStyle>
                        </ContextMenu>
                    </Button.ContextMenu>
                </Button>
                <Border Grid.Row="3" Grid.Column="2" Grid.ColumnSpan="2" Style="{StaticResource GroupingBorderStyle}"/>
                <TextBlock Grid.Row="3" Grid.Column="2" Text="Options" Style="{StaticResource GroupingTextBlockStyle}"/>
                <Grid Grid.Row="3" Grid.Column="2" Grid.ColumnSpan="2" Margin="20,20,20,15">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <TextBlock Grid.Row="0" Style="{StaticResource GroupingTextBlockStyle}" Text="{Binding Path=IntervalSeconds, NotifyOnTargetUpdated=True, StringFormat='{}{0} second interval'}" HorizontalAlignment="Center"/>
                    <Slider Grid.Row="1" Value="{Binding Path=IntervalSeconds, NotifyOnTargetUpdated=True}" Minimum="1" Maximum="30" Interval="1" VerticalAlignment="Center">
                        <Slider.Resources>
                            <Color x:Key="WindowColor">#FFE8EDF9</Color>
                            <Color x:Key="ContentAreaColorLight">#FFC5CBF9</Color>
                            <Color x:Key="ContentAreaColorDark">#FF7381F9</Color>
                            <Color x:Key="DisabledControlLightColor">#FFE8EDF9</Color>
                            <Color x:Key="DisabledControlDarkColor">#FFC5CBF9</Color>
                            <Color x:Key="DisabledForegroundColor">#FF888888</Color>
                            <Color x:Key="SelectedBackgroundColor">#FFC5CBF9</Color>
                            <Color x:Key="SelectedUnfocusedColor">#FFDDDDDD</Color>
                            <Color x:Key="ControlLightColor">White</Color>
                            <Color x:Key="ControlMediumColor">#FF7381F9</Color>
                            <Color x:Key="ControlDarkColor">#FF211AA9</Color>
                            <Color x:Key="ControlMouseOverColor">Pink</Color>
                            <Color x:Key="ControlPressedColor">#FF211AA9</Color>
                            <Color x:Key="GlyphColor">#FF444444</Color>
                            <Color x:Key="GlyphMouseOver">sc#1, 0.004391443, 0.002428215, 0.242281124</Color>
                            <Color x:Key="BorderLightColor">#FFCCCCCC</Color>
                            <Color x:Key="BorderMediumColor">#FF888888</Color>
                            <Color x:Key="BorderDarkColor">#FF444444</Color>
                            <Color x:Key="PressedBorderLightColor">#FF888888</Color>
                            <Color x:Key="PressedBorderDarkColor">#FF444444</Color>
                            <Color x:Key="DisabledBorderLightColor">#FFAAAAAA</Color>
                            <Color x:Key="DisabledBorderDarkColor">#FF888888</Color>
                            <Color x:Key="DefaultBorderBrushDarkColor">Black</Color>
                            <Color x:Key="HeaderTopColor">#FFC5CBF9</Color>
                            <Color x:Key="DatagridCurrentCellBorderColor">Black</Color>
                            <Color x:Key="SliderTrackDarkColor">#FFC5CBF9</Color>
                            <Color x:Key="NavButtonFrameColor">#FF3843C4</Color>
                            <LinearGradientBrush x:Key="MenuPopupBrush" EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="{DynamicResource ControlLightColor}" Offset="0"/>
                                <GradientStop Color="{DynamicResource ControlMediumColor}" Offset="0.5"/>
                                <GradientStop Color="{DynamicResource ControlLightColor}" Offset="1"/>
                            </LinearGradientBrush>
                            <LinearGradientBrush x:Key="ProgressBarIndicatorAnimatedFill" StartPoint="0,0" EndPoint="1,0">
                                <LinearGradientBrush.GradientStops>
                                    <GradientStopCollection>
                                        <GradientStop Color="#000000FF" Offset="0"/>
                                        <GradientStop Color="#600000FF" Offset="0.4"/>
                                        <GradientStop Color="#600000FF" Offset="0.6"/>
                                        <GradientStop Color="#000000FF" Offset="1"/>
                                    </GradientStopCollection>
                                </LinearGradientBrush.GradientStops>
                            </LinearGradientBrush>
                            <Style x:Key="DecreaseSliderButtonStyle" TargetType="{x:Type RepeatButton}">
                                <Setter Property="SnapsToDevicePixels" Value="True"/>
                                <Setter Property="OverridesDefaultStyle" Value="True"/>
                                <Setter Property="IsTabStop" Value="False"/>
                                <Setter Property="Focusable" Value="False"/>
                                <Setter Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate TargetType="{x:Type RepeatButton}">
                                            <Border Background="{StaticResource StandardGradient}" Height="6"/>
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>
                            <Style x:Key="IncreaseSliderButtonStyle" TargetType="{x:Type RepeatButton}">
                                <Setter Property="SnapsToDevicePixels" Value="True"/>
                                <Setter Property="OverridesDefaultStyle" Value="True"/>
                                <Setter Property="IsTabStop" Value="False"/>
                                <Setter Property="Focusable" Value="False"/>
                                <Setter Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate TargetType="{x:Type RepeatButton}">
                                            <Border Background="{StaticResource StandardLightControlSolidColorBrush}" Height="2"/>
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>
                            <Style x:Key="SliderThumbStyle" TargetType="{x:Type Thumb}">
                                <Setter Property="SnapsToDevicePixels" Value="True"/>
                                <Setter Property="OverridesDefaultStyle" Value="True"/>
                                <Setter Property="Height" Value="14"/>
                                <Setter Property="Width" Value="14"/>
                                <Setter Property="Cursor" Value="Hand"/>
                                <Setter Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate TargetType="{x:Type Thumb}">
                                            <Ellipse x:Name="Ellipse" StrokeThickness="0" Stroke="{StaticResource StandardLightControlSolidColorBrush}">
                                                <Ellipse.Fill>
                                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                        <GradientStop Color="{StaticResource StandardDarkControlColor}" Offset="1"/>
                                                        <GradientStop Color="{StaticResource StandardLightControlColor}"/>
                                                    </LinearGradientBrush>
                                                </Ellipse.Fill>
                                                <VisualStateManager.VisualStateGroups>
                                                    <VisualStateGroup x:Name="CommonStates">
                                                        <VisualState x:Name="Normal"/>
                                                        <VisualState x:Name="MouseOver">
                                                            <Storyboard>
                                                                <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="Ellipse">
                                                                    <EasingColorKeyFrame KeyTime="0" Value="{StaticResource StandardDarkControlColor}"/>
                                                                </ColorAnimationUsingKeyFrames>
                                                            </Storyboard>
                                                        </VisualState>
                                                        <VisualState x:Name="Pressed">
                                                            <Storyboard>
                                                                <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="Ellipse">
                                                                    <EasingColorKeyFrame KeyTime="0" Value="{StaticResource StandardDarkControlColor}"/>
                                                                </ColorAnimationUsingKeyFrames>
                                                            </Storyboard>
                                                        </VisualState>
                                                        <VisualState x:Name="Disabled">
                                                            <Storyboard>
                                                                <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="Ellipse">
                                                                    <EasingColorKeyFrame KeyTime="0" Value="{StaticResource StandardLightControlColor}"/>
                                                                </ColorAnimationUsingKeyFrames>
                                                            </Storyboard>
                                                        </VisualState>
                                                    </VisualStateGroup>
                                                </VisualStateManager.VisualStateGroups>
                                            </Ellipse>
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>
                            <ControlTemplate x:Key="HorizontalSlider" TargetType="{x:Type Slider}">
                                <Grid>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto"/>
                                        <RowDefinition Height="Auto" MinHeight="{TemplateBinding MinHeight}"/>
                                        <RowDefinition Height="Auto"/>
                                    </Grid.RowDefinitions>
                                    <TickBar x:Name="TopTick" SnapsToDevicePixels="True" Placement="Top" Height="4" Visibility="Collapsed">
                                        <TickBar.Fill>
                                            <SolidColorBrush Color="{DynamicResource GlyphColor}"/>
                                        </TickBar.Fill>
                                    </TickBar>
                                    <Border x:Name="TrackBackground" Margin="0" CornerRadius="2" Height="4" Grid.Row="1" BorderThickness="1">
                                        <Border.BorderBrush>
                                            <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                                <LinearGradientBrush.GradientStops>
                                                    <GradientStopCollection>
                                                        <GradientStop Color="{DynamicResource BorderLightColor}" Offset="0.0"/>
                                                        <GradientStop Color="{DynamicResource BorderDarkColor}" Offset="1.0"/>
                                                    </GradientStopCollection>
                                                </LinearGradientBrush.GradientStops>
                                            </LinearGradientBrush>
                                        </Border.BorderBrush>
                                        <Border.Background>
                                            <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                                <LinearGradientBrush.GradientStops>
                                                    <GradientStopCollection>
                                                        <GradientStop Color="{DynamicResource ControlLightColor}" Offset="0.0"/>
                                                        <GradientStop Color="{DynamicResource SliderTrackDarkColor}" Offset="1.0"/>
                                                    </GradientStopCollection>
                                                </LinearGradientBrush.GradientStops>
                                            </LinearGradientBrush>
                                        </Border.Background>
                                    </Border>
                                    <Track Grid.Row="1" x:Name="PART_Track">
                                        <Track.DecreaseRepeatButton>
                                            <RepeatButton Style="{StaticResource DecreaseSliderButtonStyle}" Command="Slider.DecreaseLarge"/>
                                        </Track.DecreaseRepeatButton>
                                        <Track.Thumb>
                                            <Thumb Style="{StaticResource SliderThumbStyle}"/>
                                        </Track.Thumb>
                                        <Track.IncreaseRepeatButton>
                                            <RepeatButton Style="{StaticResource IncreaseSliderButtonStyle}" Command="Slider.IncreaseLarge"/>
                                        </Track.IncreaseRepeatButton>
                                    </Track>
                                    <TickBar x:Name="BottomTick" SnapsToDevicePixels="True" Grid.Row="2" Fill="{TemplateBinding Foreground}" Placement="Bottom" Height="4" Visibility="Collapsed"/>
                                </Grid>
                                <ControlTemplate.Triggers>
                                    <Trigger Property="TickPlacement" Value="TopLeft">
                                        <Setter TargetName="TopTick" Property="Visibility" Value="Visible"/>
                                    </Trigger>
                                    <Trigger Property="TickPlacement" Value="BottomRight">
                                        <Setter TargetName="BottomTick" Property="Visibility" Value="Visible"/>
                                    </Trigger>
                                    <Trigger Property="TickPlacement" Value="Both">
                                        <Setter TargetName="TopTick" Property="Visibility" Value="Visible"/>
                                        <Setter TargetName="BottomTick" Property="Visibility" Value="Visible"/>
                                    </Trigger>
                                </ControlTemplate.Triggers>
                            </ControlTemplate>
                            <ControlTemplate x:Key="VerticalSlider" TargetType="{x:Type Slider}">
                                <Grid>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="Auto" MinWidth="{TemplateBinding MinWidth}"/>
                                        <ColumnDefinition Width="Auto"/>
                                    </Grid.ColumnDefinitions>
                                    <TickBar x:Name="TopTick" SnapsToDevicePixels="True" Placement="Left" Width="4" Visibility="Collapsed">
                                        <TickBar.Fill>
                                            <SolidColorBrush Color="{DynamicResource GlyphColor}"/>
                                        </TickBar.Fill>
                                    </TickBar>
                                    <Border x:Name="TrackBackground" Margin="0" CornerRadius="2" Width="4" Grid.Column="1" BorderThickness="1">
                                        <Border.BorderBrush>
                                            <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
                                                <LinearGradientBrush.GradientStops>
                                                    <GradientStopCollection>
                                                        <GradientStop Color="{DynamicResource BorderLightColor}" Offset="0.0"/>
                                                        <GradientStop Color="{DynamicResource BorderDarkColor}" Offset="1.0"/>
                                                    </GradientStopCollection>
                                                </LinearGradientBrush.GradientStops>
                                            </LinearGradientBrush>
                                        </Border.BorderBrush>
                                        <Border.Background>
                                            <LinearGradientBrush EndPoint="1,0" StartPoint="0.25,0">
                                                <GradientStop Color="{DynamicResource ControlLightColor}" Offset="0"/>
                                                <GradientStop Color="{DynamicResource SliderTrackDarkColor}" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Border.Background>
                                    </Border>
                                    <Track Grid.Column="1" x:Name="PART_Track">
                                        <Track.DecreaseRepeatButton>
                                            <RepeatButton Style="{StaticResource DecreaseSliderButtonStyle}" Command="Slider.DecreaseLarge"/>
                                        </Track.DecreaseRepeatButton>
                                        <Track.Thumb>
                                            <Thumb Style="{StaticResource SliderThumbStyle}"/>
                                        </Track.Thumb>
                                        <Track.IncreaseRepeatButton>
                                            <RepeatButton Style="{StaticResource IncreaseSliderButtonStyle}" Command="Slider.IncreaseLarge"/>
                                        </Track.IncreaseRepeatButton>
                                    </Track>
                                    <TickBar x:Name="BottomTick" SnapsToDevicePixels="True" Grid.Column="2" Fill="{TemplateBinding Foreground}" Placement="Right" Width="4" Visibility="Collapsed"/>
                                </Grid>
                                <ControlTemplate.Triggers>
                                    <Trigger Property="TickPlacement" Value="TopLeft">
                                        <Setter TargetName="TopTick" Property="Visibility" Value="Visible"/>
                                    </Trigger>
                                    <Trigger Property="TickPlacement" Value="BottomRight">
                                        <Setter TargetName="BottomTick" Property="Visibility" Value="Visible"/>
                                    </Trigger>
                                    <Trigger Property="TickPlacement" Value="Both">
                                        <Setter TargetName="TopTick" Property="Visibility" Value="Visible"/>
                                        <Setter TargetName="BottomTick" Property="Visibility" Value="Visible"/>
                                    </Trigger>
                                </ControlTemplate.Triggers>
                            </ControlTemplate>
                            <Style TargetType="{x:Type Slider}">
                                <Setter Property="SnapsToDevicePixels" Value="True"/>
                                <Setter Property="OverridesDefaultStyle" Value="True"/>
                                <Style.Triggers>
                                    <Trigger Property="Orientation" Value="Horizontal">
                                        <Setter Property="MinWidth" Value="104"/>
                                        <Setter Property="MinHeight" Value="21"/>
                                        <Setter Property="Template" Value="{StaticResource HorizontalSlider}"/>
                                    </Trigger>
                                    <Trigger Property="Orientation" Value="Vertical">
                                        <Setter Property="MinWidth" Value="21"/>
                                        <Setter Property="MinHeight" Value="104"/>
                                        <Setter Property="Template" Value="{StaticResource VerticalSlider}"/>
                                    </Trigger>
                                </Style.Triggers>
                            </Style>
                        </Slider.Resources>
                    </Slider>
                    <CheckBox Grid.Row="2" Content="Random Order" IsChecked="{Binding Path=Randomise, NotifyOnTargetUpdated=True}" Style="{StaticResource StandardCheckBoxStyle}" VerticalAlignment="Bottom"/>
                </Grid>
                <Border Grid.Row="5" Grid.Column="2" Grid.ColumnSpan="2" Style="{StaticResource GroupingBorderStyle}"/>
                <TextBlock Grid.Row="5" Grid.Column="2" Text="Activities" Style="{StaticResource GroupingTextBlockStyle}"/>
                <Button Grid.Row="5" Grid.Column="2" Content="Practise" Command="{Binding Path=PractiseCommand, NotifyOnTargetUpdated=True}" Style="{StaticResource StandardButtonStyle}" HorizontalAlignment="Right"/>
                <Button Grid.Row="5" Grid.Column="3" Content="Test" Command="{Binding Path=TestCommand, NotifyOnTargetUpdated=True}" Style="{StaticResource StandardButtonStyle}" HorizontalAlignment="Left"/>
            </Grid>
            <!--<Button Grid.Column="0" IsCancel="True" Opacity="0.0" Width="1" Height="1" HorizontalAlignment="Right" VerticalAlignment="Bottom" Click="CloseButton_OnClick"/>-->
            <Border Style="{StaticResource WindowBorderStyle}"/>
        </Grid>
        <Image Source="/Resources/Minion-Shout-icon.png" RenderOptions.BitmapScalingMode="HighQuality" Height="128" HorizontalAlignment="Left" VerticalAlignment="Top">
            <Image.Style>
                <Style TargetType="Image">
                    <Setter Property="Opacity" Value="0.0"/>
                    <Style.Triggers>
                        <DataTrigger Binding="{Binding Path=UpdateAvailable, NotifyOnTargetUpdated=True}" Value="True">
                            <DataTrigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetProperty="Opacity" From="0.0" To="1.0" Duration="0:0:1"/>
                                        <DoubleAnimation Storyboard.TargetProperty="Opacity" From="1.0" To="0.0" Duration="0:0:1" BeginTime="0:0:11"/>
                                    </Storyboard>
                                </BeginStoryboard>
                            </DataTrigger.EnterActions>
                        </DataTrigger>
                    </Style.Triggers>
                </Style>
            </Image.Style>
        </Image>
        <ed:Callout AnchorPoint="-0.14,0.923" CalloutStyle="RoundedRectangle" Fill="White" VerticalAlignment="Bottom" FontSize="20" Height="42" Margin="159,0,51,542" Stroke="{StaticResource StandardGradient}" StrokeThickness="3" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Cursor="Hand" MouseDown="UpdateCallout_OnMouseDown">
            <ed:Callout.Content>
                <StackPanel>
                    <TextBlock Text="Click here for an update" Foreground="{StaticResource StandardDarkControlSolidColorBrush}" Background="Transparent" HorizontalAlignment="Center"/>
                </StackPanel>
            </ed:Callout.Content>
            <ed:Callout.Style>
                <Style TargetType="ed:Callout">
                    <Setter Property="Opacity" Value="0.0"/>
                    <Style.Triggers>
                        <DataTrigger Binding="{Binding Path=UpdateAvailable, NotifyOnTargetUpdated=True}" Value="True">
                            <DataTrigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetProperty="Opacity" From="0.0" To="1.0" Duration="0:0:1"/>
                                        <DoubleAnimation Storyboard.TargetProperty="Opacity" From="1.0" To="0.0" Duration="0:0:1" BeginTime="0:0:11"/>
                                    </Storyboard>
                                </BeginStoryboard>
                            </DataTrigger.EnterActions>
                        </DataTrigger>
                    </Style.Triggers>
                </Style>
            </ed:Callout.Style>
        </ed:Callout>
    </Grid>
</Window>
